
// import toast from '../../utils/toast.js'
import request from '../../utils/request.js'

Page({
  data:{
    annountList:[]
  },
  async onLoad(){
    this.getAnnouncementList()
    const pagestr = getCurrentPages().pop().route;
    
      
    wx.utils.isTabBar(pagestr)
  },
  async getAnnouncementList(){

    const {data:annountList,code} = await wx.myRequest.get("/announcement")

    this.setData({
      annountList
    })
  }


})
